package com.shaifish.common_sys.wrapper;

import com.shaifish.common_sys.entity.SysUser;
import com.shaifish.common_sys.vo.SysUserVO;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Component;

/**
 * @author ShaiFish
 */
@Component
public class UserWrapper extends BaseWrapper<SysUser, SysUserVO>{
    @Override
    public SysUserVO entityVO(SysUser entity) {
        SysUserVO sysUserVO = new SysUserVO();
        BeanUtils.copyProperties(entity,sysUserVO);
        return sysUserVO;
    }
}
